home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší České Hry / Nej české hry.iso / hry / vesmirna becherovka / 2004 Vesmírná Becherovka / Becherovka.exe / scripts / DefineButton2_1135 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2004-09-30  |  1.0 KB  |  34 lines

  1. on(release){
  2.    if(_root.s.Control and !copy)
  3.    {
  4.       _root.s.HideSipka();
  5.       this._visible = false;
  6.       this.duplicateMovieClip("DObject",13300);
  7.       _root.s.DObject.swapDepths(0);
  8.       _root.s.DObject.gotoAndStop("pick");
  9.       _root.s.DObject.copy = true;
  10.       _root.s.DObject.origin = this;
  11.       startDrag(_root.s.DObject,0);
  12.    }
  13.    if(copy)
  14.    {
  15.       stopDrag();
  16.       if(eval(this._droptarget) != undefined and (eval(this._droptarget) == _root.s.back2.plavcik and _root.piti))
  17.       {
  18.          _root.s.what = _root.s.hero.name;
  19.          _root.s.cil = "s9_plavcik";
  20.          _root.s.uses = "vaza";
  21.          _root.s.HideObj();
  22.          _root.s.hero.gotoAndPlay("navrat");
  23.       }
  24.       if(eval(this._droptarget) != undefined and (eval(this._droptarget) == _root.s.back2.plavcik and !_root.piti))
  25.       {
  26.          _root.s.Speak(_root.s.hero.hero,"Co?!","F","What?");
  27.       }
  28.       this._visible = false;
  29.       origin._visible = true;
  30.       _root.s.ShowSipka();
  31.       _root.s.DObject.removeMovieClip();
  32.    }
  33. }
  34.